package com.qingshu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qingshu.common.entity.custom.Lyric;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Huzz
 * @since 2021-12-09
 */
public interface ILyricService extends IService<Lyric> {

    /**
     * 添加歌词
     * @param lyric
     * @return
     */
    boolean addLyric(Lyric lyric);

    /**
     * 根据id修改
     * @param toEntityStatic
     * @return
     */
    boolean updateLyricById(Lyric lyric);

    /**
     * 根据id删除
     * @param lyricId
     * @return
     */
    boolean delLyricById(Integer lyricId);

    /**
     * 查询分页列表
     * @param pageNum
     * @param pageSize
     * @param model
     * @return
     */
    String findLyricPage(Integer pageNum, Integer pageSize, Lyric model);

    /**
     * 根据id进行查询
     * @param lyricId
     * @return
     */
    Lyric finLyricById(Integer lyricId);

    /**
     * 根据音乐名称进行查询
     * @param lyricName
     * @return
     */
    Lyric finUserByRoleName(String lyricName);
}
